home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / getmoney / regnum.frm < prev   
Text File  |  1995-05-08  |  4KB  |  148 lines

  1. VERSION 2.00
  2. Begin Form RegNum 
  3.    BackColor       =   &H00808000&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "GetMoney Registration"
  6.    ClientHeight    =   2790
  7.    ClientLeft      =   2790
  8.    ClientTop       =   3105
  9.    ClientWidth     =   3015
  10.    ControlBox      =   0   'False
  11.    ForeColor       =   &H00000000&
  12.    Height          =   3195
  13.    Left            =   2730
  14.    LinkMode        =   1  'Source
  15.    LinkTopic       =   "Form1"
  16.    MaxButton       =   0   'False
  17.    MinButton       =   0   'False
  18.    ScaleHeight     =   2790
  19.    ScaleWidth      =   3015
  20.    Top             =   2760
  21.    Width           =   3135
  22.    Begin PictureBox Label3D1 
  23.       BackColor       =   &H000000FF&
  24.       Height          =   1000
  25.       Left            =   0
  26.       ScaleHeight     =   975
  27.       ScaleWidth      =   975
  28.       TabIndex        =   4
  29.       Top             =   0
  30.       Width           =   1000
  31.       Begin TextBox FirstName 
  32.          Alignment       =   2  'Center
  33.          Height          =   372
  34.          Left            =   240
  35.          MultiLine       =   -1  'True
  36.          TabIndex        =   0
  37.          Text            =   "FIRST NAME"
  38.          Top             =   120
  39.          Width           =   2292
  40.       End
  41.       Begin TextBox LastName 
  42.          Alignment       =   2  'Center
  43.          Height          =   372
  44.          Left            =   240
  45.          MultiLine       =   -1  'True
  46.          TabIndex        =   1
  47.          Text            =   "LAST NAME"
  48.          Top             =   600
  49.          Width           =   2292
  50.       End
  51.       Begin TextBox RegNumText 
  52.          Alignment       =   2  'Center
  53.          Height          =   372
  54.          Left            =   240
  55.          MultiLine       =   -1  'True
  56.          TabIndex        =   2
  57.          Text            =   "Unregistered Copy"
  58.          Top             =   1440
  59.          Width           =   2292
  60.       End
  61.       Begin CommandButton RegNumOk 
  62.          Caption         =   "&Ok"
  63.          Default         =   -1  'True
  64.          Height          =   492
  65.          Left            =   120
  66.          TabIndex        =   3
  67.          Top             =   1920
  68.          Width           =   2532
  69.       End
  70.       Begin Label Label1 
  71.          Alignment       =   2  'Center
  72.          BackColor       =   &H00808000&
  73.          Caption         =   "Enter Serial  #"
  74.          ForeColor       =   &H00000000&
  75.          Height          =   240
  76.          Left            =   600
  77.          TabIndex        =   5
  78.          Top             =   1116
  79.          Width           =   1596
  80.       End
  81.    End
  82. End
  83.  
  84. Sub FirstName_GotFocus ()
  85.     SelectWholeText FirstName
  86. End Sub
  87.  
  88. Sub FirstName_KeyPress (KeyAscii As Integer)
  89.     C$ = Chr$(KeyAscii)
  90.     C$ = UCase$(C$)
  91.     KeyAscii = Asc(C$)
  92.     
  93. End Sub
  94.  
  95. Sub Form_Load ()
  96.     Left = (Screen.Width - Width) \ 2
  97.     Top = (Screen.Height - Height) \ 2
  98. Label3D1.BorderThickness = 1
  99.  
  100.  
  101. End Sub
  102.  
  103. Sub LastName_GotFocus ()
  104.     SelectWholeText LastName
  105. End Sub
  106.  
  107. Sub LastName_KeyPress (KeyAscii As Integer)
  108.     C$ = Chr$(KeyAscii)
  109.     C$ = UCase$(C$)
  110.     KeyAscii = Asc(C$)
  111.     
  112. End Sub
  113.  
  114. Sub RegNumOk_Click ()
  115.     If RegNumText.Text = SerialNum$ Then
  116.     Form1.Ord.Visible = 0
  117.     Form1.EntReg.Visible = 0
  118.     Form1.Sep1.Visible = 0
  119.     MsgBox "Thank you " + FirstName.Text + ", the number entered: " + RegNumText.Text + " was valid, please retain it for future reference should you need to re-install GetMoney. Shareware notices will now be omitted.", 48
  120.     RegStat = RegNumText.Text
  121.     First = FirstName.Text
  122.     Last = LastName.Text
  123.     Else
  124.     Beep
  125.     RegNum.Hide
  126.     MsgBox "Sorry, the number entered was invalid.", 48
  127.     End If
  128.     Unload RegNum
  129.     
  130. End Sub
  131.  
  132. Sub RegNumOk_KeyPress (KeyAscii As Integer)
  133.    ' RegNumOk_Click CAUSED A GPF!
  134. End Sub
  135.  
  136. Sub RegNumText_GotFocus ()
  137.     SelectWholeText RegNumText
  138.  
  139. End Sub
  140.  
  141. Sub RegNumText_KeyPress (KeyAscii As Integer)
  142.     C$ = Chr$(KeyAscii)
  143.     C$ = UCase$(C$)
  144.     KeyAscii = Asc(C$)
  145.  
  146. End Sub
  147.  
  148.